package workflow.event {
import flash.events.Event;
import flash.geom.Point;

import workflow.element.ElementBase;

public class SelectElementEvent extends Event {

	public static const SELECT:String = "selectedElementEvent";

	//------------------------------
	// element
	//------------------------------

	private var _element:ElementBase;

	public function get element():ElementBase {
		return _element;
	}

	public function set element(element:ElementBase):void {
		_element = element;
	}

	//------------------------------
	// addElement
	//------------------------------

	private var _addElement:Boolean;

	public function get addElement():Boolean {
		return _addElement;
	}

	public function set addElement(addElement:Boolean):void {
		_addElement = addElement;
	}

	//------------------------------
	// dragStartPoint
	//------------------------------

	private var _dragStartPoint:Point;

	public function get dragStartPoint():Point {
		return _dragStartPoint;
	}

	public function set dragStartPoint(dragStartPoint:Point):void {
		_dragStartPoint = dragStartPoint;
	}

	public function SelectElementEvent(type:String, data:Object, addElement:Boolean, point:Point) {
		super(type, true);

		_element = ElementBase(data);
		_addElement = addElement;
		_dragStartPoint = point;
	}

}
}
